﻿<Window x:Class="TestApplication.Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Window1"
        Height="300"
        Width="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Button x:Name="buttonSpawn"
                Content="Spawn another!"
                Click="OnButtonSpawnClick"/>
        <TextBlock Grid.Row="1"
                   TextWrapping="Wrap"
                   Text="Try to launch the application manually (without the debugger), then spawn another. Without closing the second application, close the first one and start again another application. In this case, the latter will be considered the first application, since the check is performed during startup."/>
    </Grid>
</Window>